package cn.com.fuhuitong.main.cate.adapter

import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import cn.com.fuhuitong.main.cate.ui.fragment.CategoryChildFragment

class CategoryStatePagerAdapter(
    fm: FragmentManager, behavior: Int,  private var groupList: MutableList<String>
) :
    FragmentStatePagerAdapter(fm) {


    override fun getItem(position: Int): Fragment {
        return CategoryChildFragment.newInstance(id = 0)
    }

    override fun getCount(): Int {
        return groupList.size
    }

    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
        //super.destroyItem(container, position, `object`)
    }

}